package com.wyz.service;

import com.wyz.dao.User2Dao;
import com.wyz.dao.UserDao2;
import com.wyz.entity.User;
import com.wyz.entity.UserInfo;

public class User2Service {
    private User2Dao ud = new User2Dao();
    public boolean addB(User u){
        return ud.addUser2(u) >0 ? true:false;
    }
    public boolean selectB(String name,String pwd){
        return ud.selectUser2(name,pwd) != null ? true:false;
    }


    UserDao2 ud2 = new UserDao2();
    public boolean addB2(UserInfo u){
        return ud2.addUser2(u) >0 ? true:false;
    }
    public boolean selectB2(String name,String pwd){
        return ud2.selectUser2(name,pwd) != null ? true:false;
    }

}
